package com.yc.rh.biz.impl;

import java.util.List;

import com.yc.rh.biz.ICommentsInfoBiz;
import com.yc.rh.dao.ICommentsInfoDao;
import com.yc.rh.entities.CommentsInfo;
import com.yc.rh.entities.UserInfo;

public class CommentsInfoBizImpl implements ICommentsInfoBiz{
	private ICommentsInfoDao commentsInfoDao;
	
	public void setCommentsInfoDao(ICommentsInfoDao commentsInfoDao) {
		this.commentsInfoDao = commentsInfoDao;
	}

	@Override
	public int addCommentsInfo(UserInfo uf, CommentsInfo cf) {
		return commentsInfoDao.addCommentsInfo(uf, cf);
	}

	@Override
	public List<CommentsInfo> find(Integer pageNo, Integer pageSize, int naid) {
		return commentsInfoDao.find(pageNo, pageSize, naid);
	}

	@Override
	public int delComments(String csids) {
		return commentsInfoDao.delComments(csids);
	}

	@Override
	public int updateComments(CommentsInfo cf) {
		return commentsInfoDao.updateComments(cf);
	}

	@Override
	public int getTotal(int naid) {
		return commentsInfoDao.getTotal(naid);
	}
}
